<?php
/**
 * Created by PhpStorm.
 * User: ly
 * Date: 2017/2/17
 * Time: 11:10
 */

namespace APP;
use Illuminate\Database\Eloquent\Model;

class Student extends Model
{
    //指定表名
    protected  $table = 'student';

    //指定主键
    protected $primaryKey = 'id';

    //指定允许批量复制的字段
    protected $fillable = ['age','name','sex'];

    //指定不允许批量复制的字段
    //protected $guarded = [''];

    //自动维护时间戳
    public $timestamps = true;


}